package cn.iocoder.yudao.module.brokerage.merchant.pojo.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.QueryDTO;
import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.brokerage.record.enums.BrokerageRecordStatusEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Schema(description = "推广商家分佣记录查询 Request VO")
@Data
public class AppBrokerageMerchantRecordQueryDTO extends QueryDTO {

    @Schema(description = "状态：0-待入账、1-已结算、2-已失效、3-已取消、3-已取消", example = "0")
    @InEnumValue(BrokerageRecordStatusEnum.class)
    private Integer status;

    @Schema(description = "交易单号", example = "PRD20250310224")
    private String tradeNo;

    @Schema(description = "年", example = "2025")
    private Integer year;

    @Schema(description = "月", example = "01")
    private Integer month;

    @Schema(description = "日", example = "01")
    private Integer day;

    @Schema(description = "解冻时间范围，前端请求格式为“yyyy-MM-dd HH:mm:ss”", example = "2024-01-01 00:00:00,2025-12-01 23:59:59")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private LocalDateTime[] unfreezeTime;

}